KS
Killer-Skills

Auto Refresh — how to use Auto Refresh how to use Auto Refresh, what is Auto Refresh, Auto Refresh alternative, Auto Refresh vs other skills, Auto Refresh install guide, Auto Refresh setup for AI Agents, sessionStorage usage in Auto Refresh, 3D animated progress overlay implementation, market research data refresh techniques

v1.0.0
GitHub

About this Skill

Perfect for Market Analysis Agents needing real-time data updates with engaging 3D animations. Auto Refresh is a skill that automatically refreshes market research data when a user logs in, utilizing sessionStorage to prevent re-triggering.

Features

Triggers once per browser session after successful login
Uses sessionStorage.setItem to prevent re-triggering on navigation
Clears on browser tab close due to session storage behavior
Displays an engaging 3D animated progress overlay during data updates
Prevents re-triggering with 'research_refresh_done' flag in sessionStorage
Fires automatically after a user logs in, ensuring data freshness

# Core Topics

ricardocidale ricardocidale
[0]
[0]
Updated: 3/6/2026

Quality Score

Top 5%
51
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add ricardocidale/LB_Hospitality/Auto Refresh

Agent Capability Analysis

The Auto Refresh MCP Server by ricardocidale is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use Auto Refresh, what is Auto Refresh, Auto Refresh alternative.

Ideal Agent Persona

Perfect for Market Analysis Agents needing real-time data updates with engaging 3D animations.

Core Value

Empowers agents to automatically refresh stale market research data using sessionStorage, providing an enhanced user experience with 3D animated progress overlays, leveraging JavaScript and browser session management protocols.

Capabilities Granted for Auto Refresh MCP Server

Automating market research updates on user login
Refreshing data with engaging 3D animations
Preventing data staleness with sessionStorage triggers

! Prerequisites & Limits

  • Requires browser session storage access
  • Triggers only once per browser session after successful login
  • Clears on browser tab close
Project
SKILL.md
3.4 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

Auto-Refresh Market Research on Login

Purpose

Automatically refreshes stale market research data when a user logs in, with an engaging 3D animated progress overlay to keep users informed while data is being updated.

Behavior

Trigger

  • Fires once per browser session after successful login
  • Uses sessionStorage.setItem('research_refresh_done', Date.now().toString()) to prevent re-triggering on navigation
  • Clears on browser tab close (session storage behavior)

Age-Gating

  • Before refreshing, checks each property's research data age via GET /api/market-research/:type/:entityId
  • Only regenerates research older than 7 days (RESEARCH_MAX_AGE_DAYS = 7)
  • Properties with fresh research are skipped, saving API calls and time

Refresh Flow

  1. User logs in → App.tsx detects authenticated state + no session flag
  2. ResearchRefreshOverlay mounts and fetches property list
  3. For each property, checks research freshness
  4. Stale properties trigger POST /api/market-research/property/:id/generate
  5. Progress overlay shows current property name and completion percentage
  6. On completion, overlay fades out and session flag is set

3D Animated Overlay

Component

client/src/components/ResearchRefreshOverlay.tsx

Technology

  • Three.js via @react-three/fiber (React renderer)
  • @react-three/drei (helpers: Float, MeshDistortMaterial)
  • framer-motion (fade-in/fade-out transitions)

Visual Elements

ElementDescription
GlowingSphereCentral pulsing sphere with distort material, represents the AI "brain" processing
DataOrbSmall orbiting spheres that appear as each property completes, floating upward
WobbleRingRotating torus ring around the central sphere, indicates active processing
Progress TextCurrent property name + percentage, overlaid on the 3D scene
BackgroundSemi-transparent dark overlay (bg-black/80) with blur backdrop

Performance

  • Uses <Canvas> with dpr={[1, 1.5]} for performance on lower-end devices
  • Post-processing effects (bloom) disabled by default for stability
  • Scene elements use useFrame for smooth 60fps animation

Integration in App.tsx

tsx
1import { ResearchRefreshOverlay } from "@/components/ResearchRefreshOverlay"; 2 3function App() { 4 const { isAuthenticated } = useAuth(); 5 const [showRefresh, setShowRefresh] = useState(false); 6 7 useEffect(() => { 8 if (isAuthenticated && !sessionStorage.getItem('research_refresh_done')) { 9 setShowRefresh(true); 10 } 11 }, [isAuthenticated]); 12 13 const handleResearchComplete = useCallback(() => { 14 sessionStorage.setItem('research_refresh_done', Date.now().toString()); 15 setShowRefresh(false); 16 }, []); 17 18 return ( 19 <> 20 <Router>...</Router> 21 {showRefresh && <ResearchRefreshOverlay onComplete={handleResearchComplete} />} 22 </> 23 ); 24}

Dependencies

  • three — Core 3D engine
  • @react-three/fiber — React renderer for Three.js
  • @react-three/drei — Helper components (Float, MeshDistortMaterial)
  • framer-motion — Animation library for overlay transitions
  • @react-three/postprocessing — Optional bloom/glow effects

API Endpoints Used

EndpointMethodPurpose
/api/propertiesGETFetch list of properties to check
/api/market-research/property/:idGETCheck research data age
/api/market-research/property/:id/generatePOSTRegenerate stale research

Related Skills

Looking for an alternative to Auto Refresh or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication